// AWTFormLayout.h: interface for the AWTFormLayout class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTFORMLAYOUT_H__4E7320F9_C758_11D3_8143_00C0DFEA7C68__INCLUDED_)
#define AFX_AWTFORMLAYOUT_H__4E7320F9_C758_11D3_8143_00C0DFEA7C68__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//#include "AWTLayout.h"

class AFX_EXT_CLASS AWTFormLayout : public AWTLayout,
                                    public AWTLayoutManager  
{
DECLARE_SERIAL(AWTFormLayout)
public:
	AWTFormLayout();
	virtual ~AWTFormLayout();

	virtual AWTLayoutManager* getLayoutManager()
		{return static_cast<AWTLayoutManager*>(this);}

	void addLayoutComponent(CString* name, AWTComponent* comp);
	void addLayoutComponent(AWTComponent* comp, AWTObject* constraints){};
	void removeLayoutComponent(AWTComponent* comp);
	CSize preferredLayoutSize(AWTContainer* target);
	CSize minimumLayoutSize(AWTContainer* target);
	void layoutContainer(AWTContainer* target);
	void destroy()
		{delete this;}

//	virtual void Serialize(CArchive& ar);

private:
//	int m_left;
	int m_right;
	int m_gap;

};

#endif // !defined(AFX_AWTFORMLAYOUT_H__4E7320F9_C758_11D3_8143_00C0DFEA7C68__INCLUDED_)
